// -----------------------------
// Author: 		Dhaenens Gert	
// Creation: 	3/7/2015 8:41:52 PM				
// -----------------------------

#include "Shader.h"

#include "ShaderManager.h"

namespace Flow
{

	Shader::Shader(ShaderManager* lpManager, const tstring& vertexShader, const tstring& pixelShader, UInt32 inputLayout)
		: m_lpInputLayout(nullptr)
		, m_lpVertexShader(nullptr)
		, m_lpPixelShader(nullptr)
	{
		m_lpVertexShader = (IVertexShader*) lpManager->LoadShader(vertexShader, ShaderType::Vertex);
		m_lpPixelShader = (IPixelShader*) lpManager->LoadShader(pixelShader, ShaderType::Pixel);
		m_lpInputLayout = lpManager->LoadInputLayout(inputLayout);
	}

	Shader::~Shader()
	{
	}

}